unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TForm1 = class(TForm)
    Button1: TButton;
    Button2: TButton;
    Button3: TButton;
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
    procedure Button3Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation
uses
  Class_Test;

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
var
  I:Integer;
  ArrArea:array  [1..4,1..8] of string;
begin
  ArrArea[1,1]:='HelloWorld';

  for I:=0 to 7 do
  begin
    ArrArea[1,I+1]:='HelloWorld'+IntToStr(I+1);
  end;

  ShowMessage(ArrArea[1,6]);
  ShowMessage(ArrArea[4,6]);
end;

procedure TForm1.Button2Click(Sender: TObject);
var
  I,ARowCount,Add:Integer;
begin
  I:=1;
  if ARowCount>7 then
  begin
    I:=37 div 6;
    add:=37 mod 6;
    if Add>0 then Inc(I);
  end;
  ShowMessage(IntToStr(I));
end;

procedure TForm1.Button3Click(Sender: TObject);
var
  AHelloWorld:THelloWorld;
begin
  AHelloWorld:=THelloWorld.Create;
  AHelloWorld.SayHelloWorld;
end;

end.
